<div class="search-box">
	<form class="search_form layui-form" lay-filter="staff_search_form">
		{if condition="SITE_ID EQ null"}
		<div class="layui-inline">
			<label class="layui-form-label">所属分站</label>
			<div class="layui-input-inline">
				<select name="site_id" lay-filter="site_id" lay-search="">
					<option value="">全部</option>
					<option value="-1">主站</option>
					{volist name="get_site_list" id="list"}
						<option value="{$list.site_id}">{$list.site_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		{/if}
		<div class="layui-inline">
			<label class="layui-form-label">用户名</label>
			<div class="layui-input-inline">
				<input type="text" name="username" autocomplete="off" class="layui-input">
			</div>
		</div><div class="layui-inline">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-inline">
				<input type="text" name="realname" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">手机</label>
			<div class="layui-input-inline">
				<input type="text" name="phone" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<div class="layui-btn-group">
	<a data-id="add_staff" data-url="{:url('staff/tplForm')}" data-title="新增员工" class="layui-btn layui-btn-normal layui-btn-sm tap-nav"><i class="layui-icon layui-icon-add-1"></i>新增</a>
	<button class="layui-btn layui-btn-danger layui-btn-sm del-staff"><i class="layui-icon layui-icon-delete"></i>删除</button>
</div>
<table class="layui-hide" id="staff_list" lay-filter="staff_list"></table>
<script>
	var staff_list_url = "{:url('staff/ajaxstaff')}";
	var staff_delete_url = "{:url('staff/ajaxDelete')}";
	var staff_one_url = "{:url('staff/ajaxOneData')}";
	var staff_cols = {$cols};
	var access_config_config_url = "{:url('accessConfig/config')}";
	var fingerprint_url = "{:url('staff/fingerprint')}";
</script>
<script src="/static/js/staff/staff.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="staff_tool">
	<div class="layui-btn-group">
		
		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="staff_access" data-id="{{ d.staff_id}}" data-title="配置权限"><i class="layui-icon layui-icon-senior"></i></a>
		<a class="layui-btn layui-btn-red layui-btn-xs" lay-event="firgerprint" data-id="{{ d.staff_id}}" data-title="指纹管理"><i class="layui-icon layui-icon-vercode"></i></a>
		<a class="layui-btn layui-btn-normal layui-btn-xs tap-nav" lay-event="edit" data-id="edit_staff_{{ d.staff_id}}" data-url="{:url('staff/tplForm')}?staff_id={{ d.staff_id}}" data-title="修改员工"><i class="layui-icon layui-icon-edit"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除" style="display:none;"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>
<script type="text/html" id="order_searchTpl">
    {{# if(d.order_search == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="精准搜索">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="非精准搜索">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
<script type="text/html" id="view_pre_orderTpl">
    {{# if(d.view_pre_order == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="显示">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="隐藏">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>